package com.ruoyi.flow.core;

import com.ruoyi.flow.core.response.Meta;

/**
 * Created by Administrator on 2017/7/18.
 */
public class ExceptionResponse {
    private Meta meta;

    public ExceptionResponse() {
    }

    public ExceptionResponse(Meta meta) {
        this.meta = meta;
    }

    public static ExceptionResponse create(Integer code, String message) {

        Meta exceptionMeta = new Meta(code, message);

        return new ExceptionResponse(exceptionMeta);
    }

    public Meta getMeta() {
        return meta;
    }

    public void setMeta(Meta meta) {
        this.meta = meta;
    }

}
